<?php
  require("../configuracion.php");
   $idSysSection = $sectionSegmentacion;
  require("../application-top.php");
  require "segmento-tablas.php";
  require "segmento-info.php";

?>
<html>
<head>
        <title><?= $instanciaECRM ?></title>
        <link rel="stylesheet" href="../styles/style.css" type="text/css">
        <script type="text/javascript" src="../scripts/dynlayer.js"></script>
        <script type="text/javascript" src="../scripts/OptionTransfer.js"></script>
        <SCRIPT LANGUAGE="JavaScript">
            var opt = new OptionTransfer("List1","List2");
            opt.setAutoSort(false);
            opt.setDelimiter(",");
            opt.saveNewRightOptions("SelectedOpt");
        </SCRIPT>
</head>
<body leftmargin="0" class="mainBackground" topmargin="0" marginwidth="0" marginheight="0" onLoad="opt.init(document.forms[0])">
<form name="forma" action="segmento-nuevo1.php" method="get">

<table width="100" border="0" cellpadding="0" cellspacing="0">
  <tr><td><img src="../images/headerBar.gif" width="590" height="60" alt=""></td></tr>
  <tr>
    <td><table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td bgcolor="#FFFFFF" valign="top" height="400">

<table border="0" cellpadding="5" cellspacing="0" width="750">
  <tr><td colspan="2"><table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr><td colspan="2"><img src="../images/spacer.gif" height="10" width="1" alt=""></td></tr><tr><td><strong class="pageTitle">Segmentaci&oacute;n</strong><br><strong class="pageSubtitle">Nuevo segmento</strong></td><td align="right"><a href="http://www.cacto.com/" target="_blank"><img src="../images/trademarkCacto.gif" alt="Cacto" border="0"></a><br>
<strong class="systemTitle"><?= $instanciaECRM ?></strong><br>Perfil <strong><?= $PerfilUsuario ?></strong></td></tr>
  </table></td></tr>
        <tr><td colspan="2">
                <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
                        <tr class="answerCellBG">
                                <td><img src="../images/icArrowGo.gif" height="13" width="13" alt=""></td>
                        <td><a href="javascript:history.back();">Regresar</a></td>
                        </tr>
                </table>
        </td></tr>
        <tr>
        <td valign="top" width="100%">
                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                        <tr><td>
                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                <tr><td colspan="2">
                                <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
                                        <tr><td align="right">
                                                <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                        <tr>
                                                                <td colspan="2"><strong class="mainTableTitle">Segmento</strong></td>
                                                                <td class="secTableTitle" align="right">Paso 1 de 5</td>
                                                        </tr>
                                                </table>
                                        </td></tr>
                                        <tr class="answerCellBG"><td><strong>Paso 1</strong>. Seleccione la informaci&oacute;n que necesita para crear el segmento</td></tr>
                                        <tr class="answerCellBG"><td>
                                        <table border="0" cellpadding="5" cellspacing="0">
                                                <tr>
                                                        <td>
                                                        <select multiple onDblClick="opt.transferRight()" size="10" name="List1">
                                                          <?php
                                                             for ($i = 0; $i < count($TablasID); $i++) {
                                                               print "<option value=\"$TablasID[$i]\">{$TablasDesc[$i]}</option>\n";
                                                             }
                                                          ?>
                                                        </select>
                                                        </td>
                                                        <td align="center">
                                                        <table border="0" cellpadding="0" cellspacing="0">
                                                                <tr><td align="right"><A href="javascript:opt.transferRight()">Agregar&nbsp;<img src="../images/icAddRight.gif" width="12" height="13" border="0"></A></td>
                                                                </tr>
                                                                <tr><td><img src="../images/spacer.gif" height="5" width="1" alt=""></td></tr>
                                                                <tr><td align="right"><A href="javascript:opt.transferAllRight()">Agregar Todos&nbsp;<img src="../images/icAddRight.gif" width="12" height="13" border="0"></A></td>
                                                                </tr>
                                                                <tr><td><img src="../images/spacer.gif" height="30" width="1" alt=""></td></tr>
                                                                <tr><td><A href="javascript:opt.transferLeft()"><img src="../images/icSubLeft.gif" width="12" height="13" border="0">&nbsp;Remover</A></td>
                                                                </tr>
                                                                <tr><td><img src="../images/spacer.gif" height="5" width="1" alt=""></td></tr>
                                                                <tr><td><A href="javascript:opt.transferAllLeft()"><img src="../images/icSubLeft.gif" width="12" height="13" border="0">&nbsp;Remover todos</A></td>
                                                                </tr>
                                                        </table>
                                                        </td>
                                                        <td>
                                                        <select onDblClick="opt.transferLeft()" multiple size=10 name="List2"></select>
                                                        <input type="hidden" name="SelectedOpt">
                                                        </td>
                                                </tr>
                                        </table>
                                        </td></tr>
                                </table>
                                </td></tr>
                                </table>
                        </td></tr>
                        <tr><td><img src="../images/spacer.gif" height="10" width="1" alt=""></td></tr>
                        <tr><td>
                                <table border="0" cellpadding="5" cellspacing="1" class="mainTableBG">
                                        <tr class="answerCellBG">
                                                <td><img src="../images/icArrowGo.gif" height="13" width="13" alt=""></td>
                                                <td><a href="javascript:document.forms[0].submit();">Guardar y continuar al paso 2</a></td>
                                                <td><img src="../images/icArrowGo.gif" height="13" width="13" alt=""></td>
                                                <td><a href="javascript:if (confirm('Esta seguro que desea cancelar esta operaci&oacute;n?')){alert('Se cancelo con &eacute;xito la operaci&oacute;n');document.location = 'segmento-admin.php';}">Cancelar</a></td>
                                        </tr>
                                </table>
                        </td></tr>
                </table>
        </td>
        </tr>
</table>

          </td>
          <!-- <td width="36" background="../images/f_int.jpg"><img src="../images/f_int.jpg" width="36" height="126"></td> -->
        </tr>
      </table></td>
  </tr>
</table>

<!-- <table width="100%" border="0" cellpadding="0" cellspacing="0" background="../images/fotterint.jpg">
  <tr>
    <td><table width="800" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="../images/f_int_new.jpg" height="32" width="800" alt=""></td>
        </tr>
      </table></td>
  </tr>
</table> -->



</form>
<br>
<br>
<br>
<table width="750" border="0" cellpadding="5" cellspacing="0">
  <tr>
    <td align="right"><span class="copyright"><?= $copyright ?></span></td>
  </tr>
</table>
</body>
</html>
